﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using Entities.Admin;

namespace BLL.BLL
{
    public class QuanLiBoPhan
    {
        public static bool KiemTra(string s, List<BoPhan> list)
        {
            foreach (var item in list)
                if (item.MaBoPhan.ToLower().Trim().CompareTo(s.ToLower().Trim()) == 0)
                    return true;
            return false;

        }
        public static bool KiemTraRong(string s)
        {
            return String.IsNullOrWhiteSpace(s);
        }
    }
}
